'''
Created on Aug 16, 2013

@author: dmen
'''



def sms(number,msg):
    import sys 
    import win32com.client 
    ocxname='ShouYan_SmsGate61.Smsgate' 
    axocx=win32com.client.Dispatch(ocxname) 
    axocx.CommPort=8
    axocx.SmsService='+8613800100500'
    axocx.Settings='9600,n,8,1'
    axocx.sn='loyin' 
    c=axocx.Connect(1)
    axocx.SendSms(msg,number,0)

def main():
    sms()
if __name__ == '__main__':  
    main()  